Pelago\Emogrifier D

Total Complexity 154
Dependencies 6
Dependents 3
Total lines 1,467
Lines of code 626
Logical lines of code 345
Comment lines 571
Methods 53
Properties 14

Methods 53

Method Rating Maintainability Complexity Lines of code
mapComplexCssProperty()
A
46 15 36
process()
A
42 13 53
parseNth()
A
49 8 29
parseCssRules()
S
50 7 27
generateStyleStringFromDeclarationsArrays()
S
52 7 23
mapSimpleCssProperty()
S
59 6 13
copyCssWithMediaToStyleNode()
S
58 5 15
removeInvisibleNodes()
S
61 5 13
addContentTypeMetaTag()
S
55 4 20
getCssSelectorPrecedence()
S
55 4 19
parseCssDeclarationsBlock()
S
56 4 18
translateCssToXpath()
S
47 2 41
translateNthOfType()
S
54 3 24
translateNthChild()
S
54 3 24
parseCssShorthandValue()
S
64 4 9
sortBySelectorPrecedence()
S
66 4 7
emogrifyBodyContent()
S
60 3 12
getCssFromAllStyleNodes()
S
62 3 12
splitCssAndMediaQuery()
S
54 2 21
normalizeStyleAttributes()
S
59 2 15
getNodesToExclude()
S
66 3 9
clearCache()
S
61 2 13
fillStyleAttributesWithMergedStyles()
S
61 2 13
extractMediaQueriesFromCss()
S
63 2 11
removeUnprocessableTags()
S
63 2 11
removeExcludedSelector()
S
73 2 5
emogrify()
S
66 2 8
mapCssToHtmlAttributes()
S
69 2 6
matchClassAttributes()
S
67 2 7
ensureDocumentType()
S
68 2 7
removeAllowedMediaType()
S
73 2 5
existsMatchForCssSelector()
S
74 2 4
matchIdAttributes()
S
76 2 3
mapCssToHtmlAttribute()
S
72 2 5
getOrCreateHeadElement()
S
65 2 9
removeUnprocessableHtmlTag()
S
70 2 6
createXmlDocument()
S
62 1 12
setCss()
S
81 1 3
setHtml()
S
81 1 3
disableInlineStyleAttributesParsing()
S
81 1 3
disableStyleBlocksParsing()
S
81 1 3
enableCssToHtmlMapping()
S
81 1 3
disableInvisibleNodeRemoval()
S
81 1 3
getUnifiedHtml()
S
73 1 5
addAllowedMediaType()
S
80 1 3
addStyleElementToDocument()
S
66 1 8
clearAllCaches()
S
70 1 7
attributeValueIsImportant()
S
77 1 3
purgeVisitedNodes()
S
77 1 4
addUnprocessableHtmlTag()
S
80 1 3
__destruct()
S
82 1 3
addExcludedSelector()
S
80 1 3
__construct()
S
77 1 4